package com.zeldu.question.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zeldu.question.pojo.questionLibrary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface libraryMapper extends BaseMapper<questionLibrary> {
//    @Insert("insert into question_library(teacher_id,createTime,`subject`,type,Pojo,choice,grade) values (#{teacher_id},#{createTime},#{subject},#{type},#{Pojo},#{choice},#{grade})")
//    int insertquestion(questionLibrary questionLibrary);
    @Select("SELECT * from question_library where `subject` = #{subject}")
    List<questionLibrary> getQues(String subject);

}
